<?php echo '<?xml version="1.0" encoding="utf-8"?>'."\n" ?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title><?php echo __('Latest blog posts in %category%', array('%category%' => $category->getName())) ?></title>
  <subtitle><?php echo __(
    'This is the feed for the last %number% publicated blog posts in %category%.', 
    array(
      '%number%' => count($pager->getResults()),
      '%category%' => $category->getName()
    )) ?></subtitle>
  <link href="<?php echo url_for('rss_category_last_posts', array('category' => $category->getSlug(), 'sf_format' => 'atom'), true) ?>" rel="self"/>
  <updated><?php echo date(DATE_ATOM) ?></updated>
  <author>
    <name><?php echo sfConfig::get('app_feeds_author') ?></name>
    <email><?php echo sfConfig::get('app_feeds_email') ?></email>
  </author>
  <id><?php echo url_for('rss_category_last_posts', array('category' => $category->getSlug(), 'sf_format' => 'atom'), true) ?></id>
  <?php foreach ($pager->getResults() as $post) : ?>
    <?php include_partial('entry', array('post' => $post)) ?>
  <?php endforeach ?>
</feed>